package com.ever.chatbot.api.domain.zsxq;

import com.ever.chatbot.api.domain.zsxq.model.aggregates.UnAnsweredQuestionsAggregates;

import java.io.IOException;

public interface IZsxqApi {
    /**
     * 未回答的结果数据
     * @author ProgramCat
     * @date 2023/4/4 21:24
     * @param groupId 回答者id
     * @param cookie 回答者cookie
     * @return UnAnsweredQuestionsAggregates
     */
    UnAnsweredQuestionsAggregates queryUnAnsweredQuestionsTopicId(String groupId, String cookie) throws IOException;

    /**
     * 回答问题
     * @author ProgramCat
     * @date 2023/4/4 21:25
     * @param groupId 分组id
     * @param cookie 回答者cookie
     * @param topicId 问题id
     * @param text 回答答案
     * @param silenced 是否可见
     * @return boolean
     */
    boolean answer(String groupId, String cookie, String topicId, String text, boolean silenced) throws IOException;

}